package com.mybatis.common;

/**
 * @author liuxiaoding
 * @Date 2021/7/30
 **/

public class TreeNode {
    /**
     * 值
     */
    int value;
    /**
     * 右子树节点
     */
    TreeNode rightNode;
    /**
     * 左子树节点
     */
    TreeNode leftNode;

    public TreeNode(int value,TreeNode rightNode,TreeNode leftNode){
        this.value=value;
        this.rightNode=rightNode;
        this.leftNode=leftNode;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public TreeNode getRightNode() {
        return rightNode;
    }

    public void setRightNode(TreeNode rightNode) {
        this.rightNode = rightNode;
    }

    public TreeNode getLeftNode() {
        return leftNode;
    }

    public void setLeftNode(TreeNode leftNode) {
        this.leftNode = leftNode;
    }
}
